<?php
/**
 * Description of coreModel
 *
 * @author ixidor
 */
class coreModel extends kseBasic{
    
    public function __construct() {
        $this->info("Core Model Initialized");
    }
    
    public function getResult($object){
        $this->info("Starting Modeling content of ". $object->getName());
        
        switch ($object->getName()) {
            case "title":
                $object->setContent("<title>". Core::get()->nsControllers["coreController"]->title ."</title>");
            break;
            case "baseurl":
                $object->setContent("<base href=\"". Core::get()->propertyList["SITE_DOMAIN"] ."\" />");
            break;
            case "description":
                $object->setContent("<meta name=\"description\" content=\"". Core::get()->nsControllers["coreController"]->description ."\" />");
            break;
            case "keywords":
                $object->setContent("<meta name=\"keywords\" content=\"". Core::get()->nsControllers["coreController"]->keywords ."\" />");
            break;
            case "header_title":
                $object->setContent("<h1>". Core::get()->nsControllers["coreController"]->title ."</h1>");
            break;
            case "content":
                $object->setContent("<p>". Core::get()->nsControllers["coreController"]->content ."</p>");
            break;
            default:
                $object->setContent(NULL);
            break;
        }
        $this->info("Modeling - DONE");
    }
    
}

?>